#include "my_time.h"
#include <omp.h>

int main() {
  MyTimeI;
  MyTimeA;

  int nthreads = -1;
  int tid = -1;
#pragma omp parallel private(tid)
  {
    tid = omp_get_thread_num(); // Obtain thread id
    printf("Hello world from OpenMP thread %d\n", tid);
    if (tid == 0) // Only master thread does this
    {
      nthreads = omp_get_num_threads();
      printf("Number of threads: %d\n", nthreads);
    }
  }

  MyTimeB;
  return 0;
}
